package com.rockxin.cat.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * <b>类名称：    ChooseBankCardBean             <br/>
 * <b>类描述：                        <br/>
 * <b>创建人：    Lans               <br/>
 * <b>创建时间：  2018/3/3 09:29     <br/>
 * <b>修改人：                        <br/>
 * <b>修改时间：                      <br/>
 * <b>修改备注：                      <br/>
 *
 * @version 1.0.0 <br/>
 */
public class ChooseBankCardBean implements Parcelable {
    private String name;
    private boolean choose;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChoose() {
        return choose;
    }

    public void setChoose(boolean choose) {
        this.choose = choose;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeByte(this.choose ? (byte) 1 : (byte) 0);
    }

    public ChooseBankCardBean() {
    }

    protected ChooseBankCardBean(Parcel in) {
        this.name = in.readString();
        this.choose = in.readByte() != 0;
    }

    public static final Creator<ChooseBankCardBean> CREATOR = new Creator<ChooseBankCardBean>() {
        @Override
        public ChooseBankCardBean createFromParcel(Parcel source) {
            return new ChooseBankCardBean(source);
        }

        @Override
        public ChooseBankCardBean[] newArray(int size) {
            return new ChooseBankCardBean[size];
        }
    };
}
